body{
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    div{
        width: 400px;
        height: 400px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: chartreuse;
        background-clip: content-box;
        position: relative;
        padding: 20px;
        overflow: hidden;
        &::after{
            content: 'abc';
            position: absolute;
            top: 0px;
            left: 0px;
            display: block;
            background: linear-gradient(to right,#2C3940,#ED4A18,#23F305,#E10DD0,#01F5F1);
            width: 100%;
            height: 100%;
            z-index: -1;
            transform: scale(3);  
            transition: 3s;
        }
        &:hover::after{
             transform: scale(3) rotateZ(360deg);
        }
    }
}